#ifndef WRITE_PRIMITIVES_
#define WRITE_PRIMITIVES_

#include <stdint.h>

#include "defs.h"

int write_to_transfer_buffer(struct exploit_context *ctx, void* buf, uint64_t size);

int trigger_write_oob(uint32_t surface_id, uint32_t oob_size);

int corrupt_host_gmob(struct exploit_context *ctx);
int arbitrary_write(struct exploit_context* ctx, uint64_t addr, uint8_t *contents, uint32_t size);

#endif
